The Functions for Setting Fields in CodeT Struct

The following table summarizes the functions used to set flags and data fields of the codeT struct.

NOTE   The sequence of input is very important for the VLScgAllow and VLScgSet functions. You need to use the Allow function first to check the differential integrity and syntax of the field value before using the Set function. The Set function puts it in the correct structure and format.

Function Description
VLScgSetCodeLength

Sets license code length.

VLScgAllowFeatureName

VLScgSetFeatureName

Sets name of the feature to be licensed.

VLScgAllowFeatureVersion

VLScgSetFeatureVersion

Sets version number to be licensed.

VLScgAllowLicenseType

VLScgSetLicenseType

Sets license type.

VLScgAllowTrialLicFeature

VLScgSetTrialDaysCount

Sets the number of trial days.

VLScgAllowTrialHours




VLScgSetTrialHours

Verifies if setting trial elapsed hours is allowed for a code type, license type, and license version.


Sets the number of trial elapsed hours in a trial license.

VLScgAllowAdditive

VLScgAllowAggregateLicense

VLScgSetAdditive

Sets the license to additive, exclusive, or aggregate.

VLScgAllowStandAloneFlag

VLScgAllowNetworkFlag

VLScgAllowRepositoryFlag

VLScgSetStandAloneFlag

Sets whether the license will be standalone, network, or repository.

VLScgAllowLogEncryptLevel

VLScgSetLogEncryptLevel

Sets the encryption level for the License Manager’s usage log file.

VLScgAllowSharedLic/ VLScgAllowTeamCriteria

VLScgSetSharedLicType/ VLScgSetTeamCriteria

Sets sharing criteria for non-capacity license and enables shared licenses.

Enables team licenses and sets team criteria for a capacity license.

VLScgAllowShareLimit/ VLScgAllowTeamLimit

VLScgSetShareLimit/ VLScgSetTeamLimit

Sets the number of users that can share a non-capacity license.

Sets the number of team members that can share a token in case of a capacity license.

VLScgAllowCommuterLicense

VLScgSetCommuterLicense

Allows commuter licenses to be checked out.

VLScgAllowNumKeys

VLScgSetNumKeys

Sets the number of concurrent licenses allowed.

VLScgAllowLockModeQuery

VLScgSetClientServerLockMode

Sets the client-server locking mode for the intended machine in codeT.

VLScgAllowRedundantFlag

VLScgSetRedundantFlag

Controls whether the license will be used with redundant License Managers.

VLScgAllowMajorityRuleFlag

VLScgSetMajorityRuleFlag

Controls whether the majority of redundant License Managers must be running.

VLScgAllowMultipleServerInfo

VLScgSetNumServers

Sets the number of redundant License Managers.

VLScgAllowServerLockInfo

VLScgSetServerLockInfo1

Sets License Manager primary locking code.

VLScgSetServerLockMechanism1

Sets License Manager primary fingerprint criteria.

VLScgSetServerLockMechanism2

Sets License Manager secondary fingerprint criteria.

VLScgSetServerLockInfo2

Sets License Manager secondary locking code.

VLScgAllowLockMechanism

VLScgSetClientLockMechanism

Sets client fingerprint criteria.

VLScgAllowClientLockInfo

VLScgSetClientLockInfo

Sets client locking code.

VLScgSetNumClients

Sets the number of client locking codes to be specified.

VLScgAllowClockTamperFlag

VLScgSetClockTamperFlag

Defines action on detection of clock being set back on the machine.

VLScgAllowOutLicType

VLScgSetOutLicType

Sets the license output format.

VLScgSetLicType

Sets the license type.

VLScgAllowHeldLic

VLScgSetHoldingCrit

Configures license holdtime settings.

VLScgAllowCodegenVersion

VLScgSetCodegenVersion

Sets the version of license codes to generate. Checks if the current license code setting allows multiple features.

VLScgAllowMultiKey

VLScgSetKeyType

Specifies whether a license is single-feature or multi-feature.

VLScgAllowSecrets

VLScgSetSecrets

VLScgSetNumSecrets

Sets the value of the specified challenge-response secrets.

Sets the total number of secrets for the challenge-response.

VLScgAllowVendorInfo

VLScgSetVendorInfo

VLScgAllowVendorInfoExt

VLScgSetVendorInfoExt

Sets vendor-defined information in a license.

VLScgAllowKeysPerNode

VLScgSetKeysPerNode

Sets the number of license tokens per node for the specified number of clients.

VLScgAllowSiteLic

VLScgSetSiteLicInfo

VLScgSetNumSubnets

Sets addresses of subnets licensed application will be restricted to.

Sets the number of subnets the licensed application is restricted to.

VLScgAllowMultipleFeature

VLScgSetNumFeatures

Sets the number of features.

VLScgAllowSoftLimit

VLScgSetSoftLimit

Sets soft limit number.

VLScgAllowKeyHoldUnits

VLScgSetKeyHoldtimeUnits

Sets units of time to be used to specify license holdtime.

VLScgAllowKeyHoldtime

VLScgSetKeyHoldtime

Sets the time a license will be held.

VLScgAllowKeyLifetime

VLScgSetKeyLifetime

Sets the time between license renewals.

VLScgAllowKeyLifeUnits

VLScgSetKeyLifetimeUnits

Sets the unit of time to specify license renewal interval.

VLScgAllowLicBirthTime

VLScgSetLicBirthMinutes

VLScgSetLicBirthHours

Sets the minutes/hours part of the license start date.

VLScgAllowLicBirth

VLScgSetLicBirthYear

VLScgSetLicBirthMonth

VLScgSetLicBirthDay

Sets the year/month/day of the license start date.

VLScgAllowLicExpirationTime

VLScgSetLicExpirationHours

VLScgSetLicExpirationMinutes

Sets the minutes/hours part of the license expiration date.

VLScgAllowLicExpiration

VLScgSetLicExpirationYear

VLScgSetLicExpirationMonth

VLScgSetLicExpirationDay

Sets the year/month/day on which license expires.

VLScgSetNumericType

Sets the value of numeric type.

VLScgSetLoadSWLicFile

Sets and loads the software license file (lscgen.lic).

VLScgAllowGracePeriodFlag

VLScgSetGracePeriodFlag

VLScgAllowGracePeriod

VLScgSetGracePeriodDays

VLScgSetGracePeriodHours

Sets grace period for commuter license.

VLScgAllowLocalRequestLockCritFlag

VLScgSetLocalRequestLockCritFlag

VLScgAllowLocalRequestLockCrit

VLScgSetLocalRequestLockCrit

Sets the local request locking criteria.

VLScgAllowVmDetection
VLScgSetVmDetection

Sets the action on detection of a virtual machine—whether to allow/deny a license token.
VLScgValidateCodeT Validates fields value of the codeT structure.
VLScgInitMachineID
VLScgGetMachineID
VLScgMachineIDtoLockCode
Sets the macros to the machineID-related functions and maps to the functions in lserv.h.